package demo;

import application.sudoku.Sudoku;
import application.sudoku.SudokuSolver;

public class DemoSudoku {
    public static void test(String filename, SudokuSolver sudokuSolver) {
        Sudoku sudoku = new Sudoku(filename);
        System.out.println("input: ");
        System.out.println(sudoku);
        System.out.println("output: ");
        sudokuSolver.setSudoku(sudoku);
        System.out.println(sudokuSolver.solve());
    }
    public static void main(String[] args) {
        SudokuSolver sudokuSolver = new SudokuSolver();
        for (int i = 1; i <= 3; ++i) {
            test(String.format("files/sudoku/s%d.txt", i), sudokuSolver);
        }
    }
}
